
import request from "@/service/axios/index";

/**@description 【工作台】页面接口API */
const homeApi = {
    /**@description 查询访客趋势 */
    queryVistorlistByDay: (data) => {
        return request.post({ url: '/website/vistorlogs/listByDay', data })
    },
    /**@description 删除 */
    delete: (id) => {
        return request.delete({ url: '/website/vistorlogs/delete?id=' + id })
    },
    /**@description 保存数据 */
    saveData: (data) => {
        return request.post({ url: "/website/vistorlogs/save", data })
        },
        /**@description 获取详情 */
        getDetail: (id) => {
            return request.get({ url: "/website/vistorlogs/detail?id=" + id })
        }
}
export default homeApi;
